no you cant have mobs one an attacking or defending side.
you can have...
mobs attacking people
mob attacking mobs
mobs defending people
you cant have.
mobs attacking some people, but defending another.
iv thought about this for ages, but as far as i can see its not possible in the way you want.
however. you can use these functions on mudwall, where you are against the mob.